<template>
<div class="bcontainer">
    <el-row>
        <el-col :span="14">
          <slide/>
        </el-col>
        <el-col :span="4">
          <div class="fun">
              <img src="http://p0.meituan.net/codeman/e473bb428f070321269b23370ff02ba956209.jpg"/>
          </div>
        </el-col>
        <el-col :span="6">
            <div class="container">
                <img src="//s0.meituan.net/bs/fe-web-meituan/2d05c2b/img/avatar.jpg" />
                <p class="hello">Hi!  你好</p>
                <button class="register" @click="register">注册</button>
                <button class="login" @click="login">立即登录</button>
            </div>
        </el-col>
    </el-row>
    <el-row>
        <el-col :span="7">
            <div class="hotel">
                <img src="http://p1.meituan.net/codeman/8cce56c467a17e04f3094d1e455462a0132772.png" />
            </div>
        </el-col>
        <el-col :span="7">
            <div class="zishi">
                <img src="http://p1.meituan.net/codeman/16442c19da1f1c4544f794e29d99c92051716.jpg" />
            </div>
        </el-col>
        <el-col :span="5">
            <div class="boss">
                <img src="http://p1.meituan.net/codeman/5b21cddb4bb1cbc3a9c3bce0f726c75940469.jpg" />
            </div>
        </el-col>
        <el-col :span="5">
            <div class="containers">
                <img src="//s1.meituan.net/bs/fe-web-meituan/60ac9a0/img/download-qr.png" />
                <p class="App">美团APP手机版</p>
                <p class="eat"><span class="one">一元起</span> 吃喝玩乐</p>
            </div>
        </el-col>
    </el-row>
</div>
</template>

<script>
import Slide from '@/components/index/slider.vue'
export default {
    components: {
        Slide
    },
    methods: {
        register() {
            window.location.href = '/register'
        },
        login() {
            window.location.href = '/login'
        }
    }
}
</script>

<style lang="scss">
.bcontainer {
    // position: relative;
    // z-index: 0;
    .fun {
        width: 150px;
        height: 240px;
        margin-left: 20px;
        img {
            width: 100%;
            height: 100%;
        }
    }
    .container {
        border: 1px solid #e5e5e5;
        width: 212px;
        height: 240px;
        margin-left: 22px;
        padding-top: 30px;
        box-sizing: border-box;
        background: #fff;
        img {
            display: block;
            margin: 0 auto;
            height: 55px;
            width: 55px;
            border-radius: 50%;
        }
        .hello {
            text-align: center;
            display: block;
            margin-top: 5px;
            font-size: 16px;
        }
        .register {
            outline: none;
            text-align: center;
            margin: 10px auto 15px;
            background: #fff;
            border: 1px solid #e5e5e5;
            border-radius: 40px;
            font-size: 14px;
            color: #333;
            transition: background-color .5s;
            display: block;
            line-height: 38px;
            width: 118px;
            &:hover {
                background: #f8f7f7;
                opacity: .5;
            }
        }
        .login {
            outline: none;
            text-align: center;
            margin: 10px auto 15px;
            background: #fff;
            border: 1px solid #e5e5e5;
            border-radius: 40px;
            font-size: 14px;
            color: #333;
            transition: background-color .5s;
            display: block;
            line-height: 38px;
            width: 118px;
            &:hover {
                background: #f8f7f7;
                opacity: .5;
            }
        }
    }
    .hotel {
        width: 270px;
        height: 165px;
        margin-top: 19px;
        margin-left: 10px;
        img {
            width: 100%;
        }
    }
    .zishi {
        width: 270px;
        height: 165px;
        margin-top: 19px;
        margin-left: 15px;
        img {
            width: 100%;
        }
    }
    .boss {
        width: 150px;
        height: 165px;
        margin-top: 19px;
        margin-left: 20px;
        img {
            width: 100%;
        }
    }
    .containers {
        width: 211px;
        height: 167px;
        background: #fff;
        margin-top: 19px;
        margin-left: -15px;
        padding-top: 10px;
        box-sizing: border-box;
        img {
            height: 95px;
            width: 95px;
            display: block;
            margin: 0 auto;
        }
        .App {
            text-align: center;
            font-size: 16px;
        }
        .eat {
            text-align: center;
            font-size: 12px;

            .one {
                font-size: 12px;
                color: red;
            }
        }
    }
}
</style>


